<link type="text/css" href="/admins/js/jquery/css/ui-lightness/jquery-ui-1.8.20.custom.css" rel="stylesheet" />
<script type="text/javascript" src="/admins/js/My97DatePicker/WdatePicker.js"></script>
<div class="admin_nrtop">
    <form action="/admini/managestore/regoodslist/"  method="post" style="margin:0px" id="form1">
        	<div class="ad_search">
            	<div class="search">
                	<div class="soubox">
                    	<input type="text" name="quick" id="quick" value="<?php echo $this->quick; ?>"/>
                        <input type="hidden" name="typel" id="type" value="<?php echo $this->typel; ?>"/>
                        <input type="hidden" name="start" id="start" value="<?php echo $this->start; ?>"/>
                        <input type="hidden" name="pagesize" id="pagesize" value="<?php echo $this->pagesize; ?>"/>
                        <input type="hidden" id="timescope" name="timescope" value="<?php echo $this->timescope?$this->timescope:'';?>" />
                        <input type="hidden" id="starttime" name="starttime" value="<?php echo $this->starttime?$this->starttime:'';?>"/>
                        <input type="hidden" id="endtime" name="endtime" value="<?php echo $this->endtime?$this->endtime:'';?>" />
                        <label>快递公司/快递单号/用户名等</label>
                    </div>
                    <a href="javascript:$('#form1').submit();"><span>搜索</span></a>
                </div>
                
                <div class="timebox">
            <div class="ad_time">
                <div class="timezdy">
                    <div class="timeselect2">
                        <span><?php if($this->timescope){
                                switch ($this->timescope) {
                                    case "yesterday":
                                        echo "昨天";
                                        break;
                                    case "day3":
                                        echo "近3天";
                                        break;
                                    case "week":
                                        echo "本周";
                                        break;
                                    case "lastweek":
                                        echo "上周";
                                        break;
                                    case "month":
                                        echo "本月";
                                        break;
                                    case "lastmonth":
                                        echo "上月";
                                        break;
                                    case "quarter":
                                        echo "本季";
                                        break;
                                    case "lastquarter":
                                        echo "上季";
                                        break;
                                    case "year":
                                        echo "今年";
                                        break;
                                    case "lastyear":
                                        echo "去年";
                                        break;
                                    case "day7":
                                        echo "近7天";
                                        break;
                                    case "day30":
                                        echo "近30天";
                                        break;
                                    default:
                                        echo "范围选择";
                                        break;
                                }
                            }else{echo "范围选择";}?>
                        </span><i></i>
                    </div>
                    <div class="timeslelct_xl" style="display:none;">
                        <ul>
                            <li><a href="javascript:setstart('yesterday')">昨天</a></li>
                            <li><a href="javascript:setstart('day3')">近3天</a></li>
                            <li><a href="javascript:setstart('week')">本周</a></li>
                            <li><a href="javascript:setstart('lastweek')">上周</a></li>
                            <li><a href="javascript:setstart('month')">本月</a></li>
                            <li><a href="javascript:setstart('lastmonth')">上月</a></li>
                            <li><a href="javascript:setstart('quarter')">本季</a></li>
                            <li><a href="javascript:setstart('lastquarter')">上季</a></li>
                            <li><a href="javascript:setstart('year')">今年</a></li>
                            <li><a href="javascript:setstart('lastyear')">去年</a></li>
                            <li><a href="javascript:setstart('day7')">近7天</a></li>
                            <li><a href="javascript:setstart('day30')">近30天</a></li>
                        </ul>
                    </div>
                </div>
                <div class="timefw">
                    <div class="time">
                        <!--点击后悬停样式为：<div class="timeselect t_on">-->
                        <div class="timeselect"  id="stime">
                            <span id="stimeval"><?php echo $this->starttime?$this->starttime:date("Y年m月d日",mktime(0,0,0,date("m"),date("d")-90,date("Y")));?></span><i></i>
                        </div>
                        <div class="timeslelctbox">
                            <!---时间插件放此DIV-->
                        </div>
                    </div>
                    <div class="timezhi">
                        <span>至</span>
                    </div>
                    <div class="time" >
                        <div class="timeselect" id="etime">
                            <span id="etimeval"><?php echo $this->endtime?$this->endtime:date("Y年m月d日");?></span><i></i>
                        </div>
                        <div class="timeslelctbox">
                            <!---时间插件放此DIV-->
                        </div>
                    </div>
                </div>
            </div>
            <div class="timeok">
                <a href="javascript:$('#form1').submit();">确定</a>
            </div>
        </div>
    </form>
                <div class="xianshi">
                	<label>显示：</label>
                    <ul>
                    	<li <?php echo $this->pagesize?($this->pagesize==10?'class="xson"':""):'class="xson"'; ?>><a href="javascript:setcount(10)">10</a></li>
                        <li <?php echo $this->pagesize?($this->pagesize==20?'class="xson"':""):""; ?>><a href="javascript:setcount(20)">20</a></li>
                        <li <?php echo $this->pagesize?($this->pagesize==30?'class="xson"':""):""; ?>><a href="javascript:setcount(30)">30</a></li>
                    </ul>
                </div>
            </div>
        </div>
<div class="biaoge">
    <div class="biaotbody">
    <table>
            <tr>
                <th class="li205">
                    <div class="lijz"><input name="" type="checkbox" value=""></div>
                </th>
                <th class="li8">
                    <div class="lileft bianhao">物品编号</div>
                </th>
                <th class="li16">
                    <div class="lileft">
                        <span>包裹名称</span>
                    </div>
                </th>
                <th class="li9">
                    <div class="lileft">
                        仓库号/用户名
                    </div>
                </th>
                <th class="li6">
                        <div class="lileft"><p>　金额</p></div>
                </th>
                <th class="li8">
                        <div class="lileft"><p>快递公司(发)</p></div>
                </th>
                <th class="li8">
                        <div class="lileft"><p>快递单号(发)</p></div>
                </th>
                <th class="li6">
                        <div class="lileft">运费(发)</div>
                </th>
                
                <th class="li6">
                        <div class="lileft"><p>快递公司(收)</p></div>
                </th>
                <th class="li6">
                        <div class="lileft"><p>快递单号(收)</p></div>
                </th>
                <th class="li6">
                        <div class="lileft">运费(收)</div>
                </th>                                              
                <th class="li6">
                        <div class="lileft">状态</div>
                </th>   
                <th class="li6"><div class="liright">操作　</div></th>
            </tr>
        </table>
    </div>
         <div class="table">
         <table>   
             <?php if($this->list){ ?>
             <?php foreach($this->list as $item){ ?>
                 <tr>
                     <td class="li205"><div class="lijz"><input type="checkbox" id="chk10000" name="ID" /></div></td>
                     <td class="li8">
                         <div class="lileft bianhao">
                             <p><a href="/admini/managestore/storedetail/id/<?=$item->storeItemId?>"><?=$item->storeinfo->barcode?$item->storeinfo->barcode:"暂无"?></a></p>
                             <span><?=$item->datetime;?></span>
                         </div>
                     </td>
                     <td class="li16">
                         <div class="lileft">
                             <?=$item->productName?$item->productName:"暂无"?>
                         </div>
                     </td>
                     <td class="li8">
                         <div class="lileft yonghu">
                             <p><a href="/admini/managestore/index/quick/<?=$item->userinfo->nikename?>"><?=$item->userinfo->nikename?></a></p>
                             <h3><a href="/admini/manageuser/userdetail/id/<?=$item->userId?>"><?=$item->userinfo->storeno;?></a></h3>
                         </div>
                     </td>
                     <td class="li6">
                         <div class="lileft">
                          ￥<?=$item->money?$item->money:"0"?>
                         </div>
                     </td>
                     <td class="li8">
                         <div class="lileft">
                             <?=$item->logisticsName?$item->logisticsName:"暂无";?>
                         </div>
                     </td>
                     <td class="li8">
                         <div class="lileft">
                             <?=$item->logistics?$item->logistics:"暂无"?>
                         </div>
                     </td>
                     <td class="li6">
                         <div class="lileft"> 
                             ￥<?=$item->freight?$item->freight:"暂无"?>                         
                         </div>
                     </td>
                     <td class="li6">
                         <div class="lileft">
                             <?=$item->reLogisticsName?$item->reLogisticsName:"暂无"?>                         
                         </div>
                     </td>
                     <td class="li6">
                         <div class="lileft">
                             <?=$item->reLogistics?$item->reLogistics:"暂无"?>                         
                         </div>
                     </td>
                     <td class="li6">
                         <div class="lileft">
                             ￥<?=$item->reFreight?$item->reFreight:"暂无"?>
                         </div>
                     </td>
                     <td class="li6">
                        <div class="lileft">
                            <?=$item->StatusName?>
                        </div>
                     </td>
                     <td class="li6">
                         <div class="lixlnav">
                             <a class="xlnavxq" href="#">详情</a>
                             <div class="xlnavlistbox">
                                 <a class="xlnavsj" href="javascript:void();"><i></i></a>
                                 <div class="xlnavlist" style="display:none;">
                                     <ul>
                                          <li><a href="javascript:void(this)" class="delstoreitembyid" name="10000">回收站</a></li>
                                     </ul>
                                 </div>
                             </div>
                         </div>
                     </td>
                 </tr>
             <?php }}else{ echo "<font size='4' color='red'>暂无数据</font>";} ?>
         </table>
</div>
</div>
        
<div class="toolbar" <?php if (empty($this->list)) echo "style='display: none'"; ?>>
        <?php echo $this->partial('paging.phtml', array("pages" => $this->res,"pamas"=>"quick=$this->quick&typel=$this->typel&pagesize=$this->pagesize")); ?>
</div>

<script type="text/javascript">
if($("#quick").val() !== ""){
    $(".soubox label").attr("style","display:none;");
}
$('#quick').keyup(function(){
    if($("#quick").val() !== ""){
        $(".soubox label").attr("style","display:none;");
    }else{
        $(".soubox label").attr("style","display:block;");
    }
});
function setcount(size){
    $(".xianshi ul li").attr("class","");
    $(".soubox #pagesize").val(size);
    $('#form1').submit();
}
$(".timezdy").click(function(){
    $(".timezdy .timeselect2").attr("class","timeselect2 timeon");
    $(".timeslelct_xl").attr("style","display:block;");
});
$(".timezdy").mouseleave(function(){
   $(".timeselect2").attr("class","timeselect2");
   $(".timeslelct_xl").attr("style","display:none;");
});
$("#stime").click(function(){
    $(this).attr("class","timeselect t_on");
    WdatePicker({el:'stimeval',dateFmt:'yyyy年M月d日',vel:'starttime',onpicked:function(){
            $("#stime,#etime").attr("class","timeselect");
            $(".soubox #timescope").val("");
    }});
});
$("#etime").click(function(){
    $(this).attr("class","timeselect t_on");
    WdatePicker({el:'etimeval',dateFmt:'yyyy年M月d日',vel:'endtime',onpicked:function(){
            $("#stime,#etime").attr("class","timeselect");
            $(".soubox #timescope").val("");
    }});

});    
function setstart(start){
    $(".soubox #timescope").val(start);
    $(".timeselect2").attr("class","timeselect2");
    $(".timeslelct_xl").attr("style","display:none;");
    $('#form1').submit();
}
</script>

